package xyz.eden.cloud.common.core.result;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * ResultSet
 *
 * @param <T>
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ResultSet<T> {

    /**
     * code
     * <p>
     * code desc:
     * <ui>
     * <li>code = 0 --> success</li>
     * <li>code != 0 --> failure</li>
     * </ui>
     *
     *
     * </p>
     */
    protected int code;
    /**
     * msg
     * <p>
     * msg desc:
     * <ui>
     * <li>success --> 'success'</li>
     * <li>failure -->  '{business description}'</li>
     * </ui>
     */
    protected String msg;
    /**
     * data
     */
    protected T data;
}
